package cn.yitun.chat.yitunservercommonlib.converter.dto2vo.file;

import cn.yitun.chat.yitunservercommonlib.dataentity.dto.group.GroupHeadDataDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.group.GroupHeadDataVo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface GroupHeadDataDto2VoConverter {

    GroupHeadDataDto2VoConverter INSTANCE = Mappers.getMapper(GroupHeadDataDto2VoConverter.class);

    GroupHeadDataDto vo2dto(GroupHeadDataVo vo);

    List<GroupHeadDataDto> vo2dto(List<GroupHeadDataVo> voList);

    @InheritInverseConfiguration
    GroupHeadDataVo dto2vo(GroupHeadDataDto dto);

    @InheritInverseConfiguration
    List<GroupHeadDataVo> dto2vo(List<GroupHeadDataDto> dtoList);

}
